package com.boot.stomp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

@ConfigurationProperties(prefix = "boot.stomp")
@Data
public class StompProperties {

    private String endpoint = "/ws/stomp";

    private Boolean useSockJs = Boolean.FALSE;

    private List<String> brokers = Arrays.asList("/topic", "/group", "/user");

    private List<String> applicationDestinationPrefixes = Collections.singletonList("/app");

    private String userDestinationPrefix = "/user";

}
